package com.ding.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ding.service.MyService;

@Controller
public class MyController {
	
	
	@Autowired
	MyService service;
	
	@RequestMapping("/")
	public String get(Model model) {
		model.addAttribute("msg",service.getMsg());
		return "get";
	}
}
